<?php if($data): ?>
<table id="list" class="scroll"></table> 
<div class="pager scroll" style="text-align:center;"></div>
<script type="text/javascript">
	jQuery(document).ready(function(){ 
	  jQuery("#list").jqGrid({
		url:'components/shop/ajax/import_preview.php',
		datatype: 'xml',
		mtype: 'GET',
		colNames:
		[
			'<?php echo ucfirst($txt->getWord('field')); ?>',
			'<?php echo ucfirst($txt->getWord('target')).' '.ucfirst($txt->getWord('section')); ?>', 
			'<?php echo ucfirst($txt->getWord('identity')); ?>',
			'<?php echo ucfirst($txt->getWord('operation')); ?>',
			'<?php echo ucfirst($txt->getWord('std_price')); ?>',
			'<?php echo ucfirst($txt->getWord('stock')).' '.ucfirst($txt->getWord('count')); ?>',
			'<?php echo ucfirst($txt->getWord('valid')); ?>'
		],
		colModel :
		[ 
		  {name:'from_field_no', index:'from_field_no', width:55}, 
		  {name:'section', index:'section', width:200}, 
		  {name:'identity', index:'identity', width:100, align:'right'}, 
		  {name:'operation', index:'operation', width:80, align:'right'}, 
		  {name:'std_price', index:'std_price', width:80, align:'right'}, 
		  {name:'stock', index:'stock', width:150, sortable:false},
		  {name:'valid', index:'valid', width:150, sortable:false}
		],
		pager: jQuery('.pager'),
		rowNum:10,
		rowList:[10,20,30,50,100],
		sortname: 'id',
		sortorder: "desc",
		viewrecords: true,
		imgpath: '../includes/js/jquery/plugins/jqGrid/themes/basic/images',
		caption: 'Import Preview'
	  }); 
	}); 
</script>
<?php endif; ?>